package com.manager.kudian.system.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * GroupBuy entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "group_buy")
public class GroupBuy implements java.io.Serializable {

	// Fields

	private Integer gbTypeId;
	private Short type;
	private String name;
	private String description;
	private String deliveryTm;
	private String bookingTm;
	private Timestamp addTime;
	private Integer sellerId;

	// Constructors

	/** default constructor */
	public GroupBuy() {
	}

	/** full constructor */
	public GroupBuy(Short type, String name, String description,
			String deliveryTm, String bookingTm, Timestamp addTime,
			Integer sellerId) {
		this.type = type;
		this.name = name;
		this.description = description;
		this.deliveryTm = deliveryTm;
		this.bookingTm = bookingTm;
		this.addTime = addTime;
		this.sellerId = sellerId;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "gb_type_id", unique = true, nullable = false)
	public Integer getGbTypeId() {
		return this.gbTypeId;
	}

	public void setGbTypeId(Integer gbTypeId) {
		this.gbTypeId = gbTypeId;
	}

	@Column(name = "type", nullable = false)
	public Short getType() {
		return this.type;
	}

	public void setType(Short type) {
		this.type = type;
	}

	@Column(name = "name", nullable = false, length = 20)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "description", nullable = false, length = 200)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "delivery_tm", nullable = false, length = 10)
	public String getDeliveryTm() {
		return this.deliveryTm;
	}

	public void setDeliveryTm(String deliveryTm) {
		this.deliveryTm = deliveryTm;
	}

	@Column(name = "booking_tm", nullable = false, length = 10)
	public String getBookingTm() {
		return this.bookingTm;
	}

	public void setBookingTm(String bookingTm) {
		this.bookingTm = bookingTm;
	}

	@Column(name = "add_time", nullable = false, length = 19)
	public Timestamp getAddTime() {
		return this.addTime;
	}

	public void setAddTime(Timestamp addTime) {
		this.addTime = addTime;
	}

	@Column(name = "seller_id", nullable = false)
	public Integer getSellerId() {
		return this.sellerId;
	}

	public void setSellerId(Integer sellerId) {
		this.sellerId = sellerId;
	}

}